package com.icss.server;

import com.icss.dao.tvehic;
import com.icss.entity.tvehicleillegalrecord;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.persistence.criteria.CriteriaQuery;

@Service(value = "tvehicleillegalrecordp")
public class tvehicleillegalrecordimpl implements tvehicleillegalrecordp {
    @Resource
    tvehic tvehic;
    @Override
    public Page<tvehicleillegalrecord> findNoCriteria(Integer page, Integer size) {
        Pageable pageable =  PageRequest.of(0,3);
        return tvehic.findAll(pageable);
    }

    @Override
    public Page<tvehicleillegalrecord> findCriteria(Integer page, Integer size, tvehicleillegalrecord bookQuery) {
  return null;
    }
}
